(global.webpackJsonp = global.webpackJsonp || []).push([ [ "subpages/pages/invoice/input_invoice" ], {
    1893: function(t, e, i) {
        i.r(e);
        var n = i("a8f0"), o = i("41ca");
        for (var a in o) "default" !== a && function(t) {
            i.d(e, t, function() {
                return o[t];
            });
        }(a);
        i("ab42");
        var c = i("f0c5"), r = Object(c.a)(o.default, n.b, n.c, !1, null, "f30d41dc", null, !1, n.a, void 0);
        e.default = r.exports;
    },
    "41ca": function(t, e, i) {
        i.r(e);
        var n = i("5d20"), o = i.n(n);
        for (var a in n) "default" !== a && function(t) {
            i.d(e, t, function() {
                return n[t];
            });
        }(a);
        e.default = o.a;
    },
    "5d20": function(t, e, i) {
        (function(t) {
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var i = {
                components: {},
                data: function() {
                    return {
                        ids: "",
                        allMoney: 0,
                        form: {
                            title: "",
                            taxpayer_id: "",
                            taker_email: "",
                            title_type: 0,
                            title_id: ""
                        },
                        activeTab: 0,
                        ttType: 0,
                        openEail: !1,
                        openMore: !1
                    };
                },
                onLoad: function(t) {
                    this.ids = t.ids, this.allMoney = t.allMoney, this.loadInvoice();
                },
                methods: {
                    loadInvoice: function() {
                        var t = this;
                        this.$api.getInvoiceTit({
                            page: 1,
                            limit: 1
                        }, function(e) {
                            if ("1" == e.code) {
                                var i = e.data.list, n = void 0 === i ? [] : i;
                                t.selectInvoice(n[0]);
                            } else t.$common.errorToShow(e.msg);
                        });
                    },
                    selectInvoice: function(t) {
                        t && (this.form.title = t.title, this.form.taxpayer_id = t.taxpayer_id, this.form.taker_email = t.taker_email, 
                        this.form.title_type = t.title_type, this.form.title_id = t.id, 1 == t.title_type ? this.ttType = 1 : this.ttType = 0);
                    },
                    toChooseRise: function() {
                        t.navigateTo({
                            url: "choose_rise"
                        });
                    },
                    toCheckInvoice: function() {
                        this.form.title ? this.form.taxpayer_id || 0 == this.form.title_type ? this.form.taker_email ? t.navigateTo({
                            url: "./check_invoice?item=".concat(JSON.stringify(this.form), "&ids=").concat(this.ids, "&allMoney=").concat(this.allMoney)
                        }) : t.showToast({
                            title: "请填写收票人邮箱",
                            duration: 2e3,
                            icon: "none"
                        }) : t.showToast({
                            title: "请填写纳税人识别号",
                            duration: 2e3,
                            icon: "none"
                        }) : t.showToast({
                            title: "请填写发票抬头",
                            duration: 2e3,
                            icon: "none"
                        });
                    },
                    changeTab: function(t) {
                        this.activeTab = t;
                    },
                    changeTT: function(t) {
                        this.ttType = t, this.form.title_type = t;
                    }
                }
            };
            e.default = i;
        }).call(this, i("543d").default);
    },
    "65e3": function(t, e, i) {},
    "859a": function(t, e, i) {
        (function(t) {
            i("98af"), n(i("66fd"));
            var e = n(i("1893"));
            function n(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = i, t(e.default);
        }).call(this, i("543d").createPage);
    },
    a8f0: function(t, e, i) {
        i.d(e, "b", function() {
            return n;
        }), i.d(e, "c", function() {
            return o;
        }), i.d(e, "a", function() {});
        var n = function() {
            this.$createElement, this._self._c;
        }, o = [];
    },
    ab42: function(t, e, i) {
        var n = i("65e3");
        i.n(n).a;
    }
}, [ [ "859a", "common/runtime", "common/vendor" ] ] ]);